package demo6;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")//多实例,每次向Spring容器获取对象时,都会创建一个新对象
public class Person {
}
